package com.liveinstars.common.enums;

/**
 * @author ting
 * @version v1.0
 * @ClassName: SystemExceptionEnum
 * @Description: TODO
 * @date 2019-04-26
 */
public enum SystemExceptionEnum {
    //-100 ~ -199 系统异常
    NO_LOGIN(-101, "用户未登录！"),
    AUTH_ERROR(-102, "签名验证失败！"),
    AUTH_INVALID(-103, "签名已失效"),
    JOB_DOING(20000000,"正在处理中"),
    ;

    private int code;

    private String errorMsg;

    SystemExceptionEnum(int code, String errorMsg) {
        this.code = code;
        this.errorMsg = errorMsg;
    }

    public int getCode() {
        return code;
    }

    public String getErrorMsg() {
        return errorMsg;
    }}